package org.ch00.test04.demo05;

/**
 * 消费者
 * @author CSY
 * @date 2025 - 03 - 03
 */
public class Consumer {
    public void buy(PayWay payWay) {
        payWay.pay();
        System.out.println("支付成功");
    }
}
